public class Departmental_staff extends Staff{
    private double bonus ;
    public Departmental_staff(String name, double salary, int days, double grade) {
        super(name, salary, days, grade);
    }

    public double getBonus() {
        return bonus ;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
    public double getSal() {
        return bonus + ( getDays() * getSalary() * getGrade()) ;
    }

    @Override
    public void print() {
        super.print() ;
        System.out.println(getBonus()) ;
    }
}
